<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="x-ua-compatible" content="ie=edge">
		<title>{block name="title"}{$page_title|default=config('app.web_site_title')}{/block}</title>
		<meta name="keywords" content="{block name='keywords'}{:config('app.web_site_keywords')}{/block}">
		<meta name="description" content="{block name='description'}{:config('app.web_site_description')}{/block}">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, shrink-to-fit=no, user-scalable=no">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		{block name="meta"}{/block}
		{block name="link"}
		<!-- Icons -->
		<link rel="icon" href="__STATIC__/images/favicon.ico">
		<!-- END Icons -->
		{/block}
		<!-- Stylesheets -->
		<link rel="stylesheet" href="__STATIC__/libs/weui/css/weui.min.css">
		<link rel="stylesheet" href="__STATIC__/libs/weui/css/common.css?v={:config('app.asset_version')}">
		<link rel="stylesheet" href="__STATIC__/css/font/iconfont.css?v={:config('app.asset_version')}">
		<!-- END Stylesheets -->
		{block name="style"}{/block}
	</head>
	<body id="{$Request.app|strtolower}-{$Request.controller|strtolower}-{$Request.action|strtolower}">
		<!-- Page Container -->
		<div class="page" id="main">
			{block name="header"}
			<!-- Header -->
			<header class="bar bar-nav bgv">
				<a class="fl external" href="javascript:;" onClick="javascript:history.back(-1);"><i class="ico ico-left"></i></a>
				<h4>{$page_title|default=config('app.web_site_title')}</h4>
				<a class="fr external" href="{:url('user/member/index')}"><i class="ico ico-wo"></i></a>
			</header>
			<!-- END Header -->
			{/block}
			{block name="container"}{/block}
		</div>
		<!-- END Page Container -->
		<!-- FOOT -->
		{block name="copyright"}
		<!-- Copyright -->
		<div class="weui-footer padding-tb">
			<!-- 		<p class="weui-footer__links">
	<a href="javascript:void(0);" class="weui-footer__link">底部链接</a>
	</p> -->
			<p class="weui-footer__text">{:config('app.web_site_copyright')}</p>
		</div>
		<!-- Copyright -->
		{/block}
		{block name="page-footer"}
		<!-- Footer -->
		<!-- 工具栏 -->
		<div class="footer"></div>
		{notempty name="nav.main_nav"}
		<nav class="bar-tab weui-flex">
			{volist name="nav.main_nav" id="menu"}
			<a class="tab-item weui-flex__item{if isset($active) && $active == $menu.rel} active{/if}" href="{$menu.url}">
				<span class="icoimg {$menu.css}{if isset($active) && $active == $menu.rel}-full{/if}"></span>
				<span class="tab-label">{$menu.title}</span>
			</a>
			{/volist}
		</nav>
		{/notempty}
		<!-- Footer -->
		{/block}

		{block name="left-tools"}
		<ul id="Fixed">
			<li id="goTop" class="ico ico-up hidden" title="去顶部"></li>
		</ul>
		{/block}
		<!-- END FOOT-->
		<div class="hidden">
			{// 站点统计代码}
			{:config('app.web_site_statistics')}
			{block name="hidden"}{/block}
		</div>
		<!--js -->
		<script src="__STATIC__/libs/weui/js/jquery.min.js"></script>
		<script src="__STATIC__/libs/weui/js/weui.min.js"></script>
		<script src="__STATIC__/libs/weui/js/common.js?{:config('app.asset_version')}"></script>
		{block name="wxscript"}
		{notempty name="jssdk"}
		<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
		<script>
			wx.config({
				debug: false,
				appId: '{$jssdk.appid}',
				timestamp: '{$jssdk.timestamp}',
				nonceStr: '{$jssdk.noncestr}',
				signature: '{$jssdk.signature}',
				jsApiList: [
					'updateAppMessageShareData',
					'updateTimelineShareData',
					'hideMenuItems',
					'showMenuItems',
					'closeWindow',
				],
				openTagList: ['wx-open-launch-weapp']
			});
			wx.ready(function() {
				wx.updateAppMessageShareData({
					title: "{$share.title|default=config('app.web_site_title')}", // 分享标题
					desc: "{$share.desc|default=config('app.web_site_slogan')}", // 分享描述
					link: "{$share.url|default=$jssdk.url}", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
					imgUrl: "{$share.img|default=$Request.scheme . '://' .$Request.host .'__STATIC__/images/share.png'}", // 分享图标
					success: function() {
						// 设置成功
					}
				});
				wx.updateTimelineShareData({
					title:  "{$share.title|default=config('app.web_site_title')}", // 分享标题
					link: "{$share.url|default=$jssdk.url}", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
					imgUrl: "{$share.img|default=$Request.scheme . '://' .$Request.host .'__STATIC__/images/share.png'}", // 分享图标
					success: function() {
						// 设置成功
					}
				});
				{notempty name="share.hide"}
				wx.hideMenuItems({
					menuList: ['menuItem:copyUrl', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:openWithQQBrowser',
						'menuItem:openWithSafari', 'menuItem:share:email', 'menuItem:favorite', 'menuItem:share:qq',
						'menuItem:share:weiboApp', 'menuItem:favorite', 'menuItem:share:QZone'] // 要隐藏的菜单项，只能隐藏“传播类”和“保护类”按钮，所有menu项见附录3
				});
				{/notempty}
				wx.showMenuItems({
					menuList: ["menuItem:profile", "menuItem:addContact", ] // 要显示的菜单项，所有menu项见附录3
				});
			});
		</script>
		{/notempty}
		{/block}
		{block name="script"}{/block}
	</body>
</html>
